<template>
  <gh-table api="/demoList" :columns="this.columns">
    <template slot="action" slot-scope="scope">
      <el-button>{{scope.row.name}}</el-button>
    </template>
  </gh-table>
</template>

<script>
  import GhTable from "@/views/components/ghTable/index.js";
    export default {
        name: "ghTableDemo",
      components:{GhTable},
      data(){
          return{
            columns:[
              {
                label:"日期",
                prop:"date",
                width:"180",
              },
              {
                label:"姓名",
                prop:"name",
                width:"180"
              },
              {
                label:"住址",
                prop:"address",
              },
              {
                label:"操作",
                width:"180",
                slot:"action"
              }
            ]
          }
      }
    }
</script>
<style scoped>
</style>
